/**
 * NCSearch.java
 */
package commands.nc;

/**
 * 
 * @author maciek
 *
 */
public class NCSearch extends NetworkControllerCommand
{
	private String searchName;
	private int minSize;
	private int maxSize;
	private int id;
	private String sum;
	
	/**
	 * 
	 * @param searchName name to search
	 * @param minSize minimal size
	 * @param maxSize maximal size
	 * @param id identifier of search
	 */
	public NCSearch(String searchName, int minSize, int maxSize, String sum,int id)
	{
		super(NetworkControllerCommandType.SEARCH);
		this.searchName=searchName;
		this.minSize=minSize;
		this.maxSize=maxSize;
		this.id=id;
		this.sum=sum;
	}
	/**
	 * 
	 * @return searched name
	 */
	public String getSearchName()
	{
		return searchName;
	}
	/**
	 * 
	 * @return minimal size
	 */
	public int getMinSize()
	{
		return minSize;
	}

	/**
	 * 
	 * @return maximal size
	 */
	public int getMaxSize()
	{
		return maxSize;
	}

	/**
	 * 
	 * @return identifier of search
	 */
	public int getId()
	{
		return id;
	}

	/**
	 * @return sum of search
	 */
	public String getSum()
	{
		return sum;
	}

}
